package Model;
import java.util.Date;

public class Order
{
    private long orderID;
    private Product product;
    private long totalprice;
    private Customer customer;
    private Date date;
    private Machine machine;

    public Order(long orderID,Product product,Customer customer)
    {
        this.orderID=orderID;
        this.product=product;
        this.customer=customer;
        OrderCont.getInstance();
        OrderCont.addOrder(this);
    }
    
    public long getOrderID()
    {
        return orderID;
    }
    
    //public long getTotalPrice()
    //{
     //   totalprice=(product.getPrice()+machine.getPrice())-((product.getPrice()+machine.getPrice())*customer.getDiscount()/100);
      //  return totalprice;
  //  }
    
    public Date getDate()
    {
        return date;
    }
    
    public void setOrderID(long orderID)
    {
        this.orderID=orderID;
    }
    
    public void setDate(Date date)
    {
        this.date=date;
    }
}
